package com.tansuo365.test1.service.otherservice;


import com.tansuo365.test1.bean.otherbean.User;
import com.tansuo365.test1.bean.otherbean.UserRole;

import java.util.List;

/*用户角色服务接口*/
public interface UserRoleService {

	public void setRoles(User user, int[] roleIds);

	public void setRolesById(int userId, int[] roleIds);

	public int deleteByUser(int userId);

	public int deleteByRole(int roleId);

	List<UserRole> getUserRoleByUser(User user);

}